package org.tote.exception;

import org.tote.model.User;

public class UserAlreadyExistException extends Exception {

    private static final long serialVersionUID = 2317957910847208556L;

    public UserAlreadyExistException() {
        this("User with credentials already exists.");
    }
    
    public UserAlreadyExistException(String message) {
        super(message);
    }
    
    public UserAlreadyExistException(User user) {
        this("User already exists:" + user.getUsername());
    }
}
